package com.cash.channel.svc.service.api;

import com.cash.channel.svc.util.ServiceUtils;
import com.cash.channel.api.constant.Constant;
import com.cash.channel.api.exception.CashChannelException;
import com.cash.channel.api.model.ApiRequestModel;
import com.cash.channel.api.model.ApiResponseModel;
import com.cash.channel.api.model.response.RepayDetailResponse;
import com.cash.channel.api.service.BaseApi;
import com.cash.channel.svc.service.base.RepayDetail;
import org.springframework.stereotype.Service;

@Service("repayDetail")
public class CJH000009 implements BaseApi<RepayDetailResponse> {

    @Override
    public ApiResponseModel<RepayDetailResponse> doProcess(ApiRequestModel apiRequestModel) throws CashChannelException {
        RepayDetail repayDetail = ServiceUtils.getBean(apiRequestModel.getInterfaceType()+ Constant.SERVICE.查询还款详情, RepayDetail.class);
        return repayDetail.doRepayDetail(apiRequestModel);
    }

}
